package xgenerator.generators.jgenerator;

import xgenerator.generators.ControllerGenerator;
import xgenerator.model.ModelMetadata;

/**
 * <p>
 * Title:Struts2Generator
 * </p>
 * <p>
 * Description:具体功能见各方法描述
 * </p>
 * <p>
 * Copyright:Copyright (c) 2012
 * </p>
 * 
 * @author <a href="mailto:lishushan@gmail.com">liss</a>
 * @version 1.0
 */
public interface Struts2Generator extends ControllerGenerator {
	
	public static final String STRUTS2_CONFIG_PREFIX = "struts-";
	public static final String STRUTS2_VALIDATION_CONFIG_SUFFER = "-validation";
	
	/*
	 * java代码目录名
	 */
	public static String STRUTS2_DIR = "struts2";

	/*
	 * web代码目录名
	 */
	public static String STRUTS2_JSP_DIR = "content";
	
	public String generateActionCode(ModelMetadata modelMetadata);
	public String generateActionConfigCode(ModelMetadata modelMetadata);
	public String generateActionValidationCode(ModelMetadata modelMetadata);

}
